#How can I clone a VM ?

1 messages · Page 1 of 1 (latest)

zealous laurel
#

Do you use a VM for HA in both locations already?

#

If you do then ...

what VM software?

wraith vault
#

Yeah I use a VM for HA on my personal PC and I would like to clone it on the PC admistrator. I use VirtualBox (sorry was eating)

wraith vault
#

For MAC address policy, since they won't have the same network, I won't chose "Generate New MAC Addresses For All Network Adapters" but between "Include every MAC address of the network" or "Include only MAC address of the NAT network" ? I don't really understand the difference ...

zealous laurel
#

You've moving between networks, you can use option 2

wraith vault
#

NAT ?

zealous laurel
#

Include every MAC address of the network

wraith vault
#

ok boss !

#

and then how do I transfer this clone to my PC ? I see the clone on virtualBox on my personal PC but I don't know how do I put it on my USB key and then being able to power it up on the other PC without needing internet

#

Because I found the .vdi of the clone but I'm afraid I will need internet when i'll download it on the other PC like my first problem

zealous laurel
wraith vault
#

okay i'll try that thanks again boss

zealous laurel
#

You'll want to copy every file in the cloned folder over, not just the .vdi

wraith vault
#

okay but what do I do with the other files ? I'm used to create a new VM with the .vdi file so I don't know where to put the other ones. I think I'm asking idiot questions 😩

zealous laurel
#

Zip up the entire folder, copy over the zip, extract the zip, point VBox at the extracted folder

wraith vault
#

okkkkkkkkkkk

wraith vault
#

It’s working !!! Let’s gooo

#

I need internet to access it from my browser ?

zealous laurel
#

Well, you need networking to access it

wraith vault
#

But the VM and my browser are on the same network since they are on the same PC aren’t they ?

zealous laurel
#

Ok... are you actually having a problem?

#

Because nothing you've posted says you are

wraith vault
#

I’ve tried to put the HA url it gave me on internet explorer on the same PC but it’s not working, I would assume it’s because I don’t have internet, and if I want to access it I need to use internet on a PC in the same network no ?

zealous laurel
#

What URL?

wraith vault
zealous laurel
#

That only works if the network supports mDNS

#

Probably it doesn't

#

Use the LAN IP (and port)

wraith vault
#

What LAN IP ?

zealous laurel
#

The one for your HAOS VM

wraith vault
#

Oh the IPv4 address ?

zealous laurel
#

Yes

wraith vault
#

I put homeassistant.local:IPv4 ?

zealous laurel
#

No

#
http://192.168.0.42:8123
wraith vault
#

Damn still doesn’t work 😭

zealous laurel
#

did you use the address shown in the HA console?

#

did it get that from DHCP?

wraith vault
#

Yeah xd

#

I don’t know what is DHCP … but it says « IPv4 addresses for enp0s3: 10.0.2.15/24 » and I used this one

zealous laurel
#

Does your computer have an address starting 10.0.2.?

wraith vault
#

Oh no it means I forgot the bridge ahhhh

#

Okay ive put it but now it doesn’t give me the IPv4 addresses anymore … what can I do ?

zealous laurel
#

Make sure the network you connected the VM to has a DHCP server

#

VBox can provide that on virtual networks, otherwise ask the network admin

wraith vault
#

If I don’t have a DHCP server, I need to ask to the network admin to provide me an IP address? I already know the address of my PC so I don’t really understand the goal or what I need to ask him

zealous laurel
#

DHCP is how computers get an address automatically

#

Your VM needs an address

#

Either you have to not bridge it to the network and use a virtual network

#

OR you need an address from the network admin, manually or by DHCP

wraith vault
#

Oh okay i understand thanks a lot, I’ll will ask him

wraith vault
#

When I clone a VM, after zip it, put on my usb key, extract the zip, What do I do on Virtual Box. Do I "add" a new VM thanks to the extract file but I can only add the .vbox file ? Or do I create a "New" VM thanks to the vbi file in the extract file ? Because When I do the first option I have a strange error. And when I do "New" it works. The thing is for me I don't take every file of my extract file so for me it's not good no ?

zealous laurel
#

You zip up the whole VM folder

#

You then extract every file

#

Then you use the add option in VBox

wraith vault
#

As I said, when I do "add", I can only take the .vbox file. And then when I try to power it up, it just doesn't power up, the error is : "Nonexistent host networking interface"

zealous laurel
#

So change the interface?

wraith vault
#

I would love to but I don't know how to do it, I found in the settings User interface but I don't know what to do next and if it's here I can change the host networking interface

zealous laurel
#

VBox -> VM -> Settings -> Network

wraith vault
wraith vault
#

didnt mean to ping you

zealous laurel
#

The "name" is the adapter it uses

wraith vault
#

Yes but neither of the 2 I can put works, One says "Nonexistent host networking interface" and the other one says "cpum#1:X86_CPUID_FEATURE_ECX_PCID is not supported by the host but has already exposted to the guest

zealous laurel
#

Well... sounds like you need to head over to the VBox forums and get help with VBox