Author Topic: clone a live machine running from flash sda to a physical disk sdb  (Read 9267 times)

windy

  • Member
  • ***
  • Posts: 19
    • View Profile
My Server is DELL R710 Raid0 (146GB*4)
1. Write the image to a 16GB flash drive and boot from USB
2. Log in and stop all services: "/etc/init.d/wanosd stop-all"
3. dd if=/dev/sda of=/dev/sdb
4. reboot &  boot from Hdisk
 l found login wanos via "tc' , don't need password and
 "ifconfig " no lan0 & wan0 only lo
there is not folder "wanos" in /etc/


Wanos

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 56
    • View Profile
Re: clone a live machine running from flash sda to a physical disk sdb
« Reply #1 on: June 05, 2015, 11:30:16 AM »
Quote
l found login wanos via "tc' , don't need password

Hi, yes it appears to be raid or scsi compatibility. If the raid drive is available when booting from flash then the drive can be used for the datastore without the dd process. Alternatively please install ESXi as a base system

ESXi will also allow other vm's to run on the hardware since the hardware is most likely significantly more powerful than required for 20mbps.
« Last Edit: June 05, 2015, 11:44:33 AM by ahenning »
Note: Forum posts may be outdated. Please see the latest documentation at wanos.co/docs

windy

  • Member
  • ***
  • Posts: 19
    • View Profile
Re: clone a live machine running from flash sda to a physical disk sdb
« Reply #2 on: June 05, 2015, 12:58:55 PM »
I had build a esxi wanos via ova file,but wanos(VM)system network disconnect , only can ping itself(lan0)

ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 629
    • View Profile
Re: clone a live machine running from flash sda to a physical disk sdb
« Reply #3 on: June 05, 2015, 02:25:15 PM »
Hi, the VM network interfaces needs to be connected to physical interfaces. It is done via the Host > Configuration > Networking tab.

There are some manual steps here: http://wanos.co/wan-optimization/vsphere-vswitch-guide/
But the virtual interfaces are already added in the OVA package. The virtual interfaces just needs to be connected to the correct physical ports and promiscuous enabled. ( This is assuming two dedicated physical interfaces will be used and not VLANS).
CCIE RS, CCIE SP, Mnet&sys

Note: Forum posts may be outdated. Please see the latest documentation at wanos.co/docs

windy

  • Member
  • ***
  • Posts: 19
    • View Profile
Re: clone a live machine running from flash sda to a physical disk sdb
« Reply #4 on: June 06, 2015, 03:33:27 AM »
My VMware vSphere Verison 5.5
like Screenshots vlan70(lan0) & vlan208(wan) ,this two vlans promiscuous enabled
whare is wrong,please help

windy

  • Member
  • ***
  • Posts: 19
    • View Profile
Re: clone a live machine running from flash sda to a physical disk sdb
« Reply #5 on: June 06, 2015, 03:43:42 AM »
today i done a test
I dd wanos img file to Hdisk (it is sata and 500GB) on windows xp ;
dd version 0.6beta3
dd if=wanos-usb.img of=\\.\e:   
but boot wanos from this Hdisk alway show below error (BIOS DISK model ;IDE or AHCI)
Attempting boot From Hard Drive
« Last Edit: June 06, 2015, 03:48:55 AM by windy »

ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 629
    • View Profile
Re: clone a live machine running from flash sda to a physical disk sdb
« Reply #6 on: June 06, 2015, 01:24:14 PM »
Quote
Screenshots vlan70(lan0) & vlan208(wan) ,this two vlans promiscuous enabled

Screenshots looks OK. Now I suspect the port on the switch where the R710 connects needs to be in trunk mode.

Screenshot of the vswitch config:


Regarding dd for windows, rather not use it, seems lots of people have problems with it. Win Disk Imager is ok.
CCIE RS, CCIE SP, Mnet&sys

Note: Forum posts may be outdated. Please see the latest documentation at wanos.co/docs

windy

  • Member
  • ***
  • Posts: 19
    • View Profile
Re: clone a live machine running from flash sda to a physical disk sdb
« Reply #7 on: June 08, 2015, 01:21:11 AM »
R710 two ports connect to CISCO switches, switches and virtual switches mode are trunk, and my other VM network is normal

How can i write img file to hdisk via “Win32 Disk Imager”  (I know USB is ok)
« Last Edit: June 08, 2015, 01:28:14 AM by windy »

windy

  • Member
  • ***
  • Posts: 19
    • View Profile
Re: clone a live machine running from flash sda to a physical disk sdb
« Reply #8 on: June 08, 2015, 01:58:48 AM »
after i done this command ,network is ok
ifconfig wan0 down & ifconfig wan0 up
ifconfig lan0 down  ifconfig lan0 up
ifconfig tun0 down  ifconfig tun0 up

And I have found wanos must ping gateway first after reboot or configuration applied,then network can work normal


« Last Edit: June 08, 2015, 07:17:52 AM by windy »

ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 629
    • View Profile
Re: clone a live machine running from flash sda to a physical disk sdb
« Reply #9 on: June 08, 2015, 10:24:53 AM »
Ok great!

That is an ESXi quirk that happens when there are bridge/promiscuous portsgroups connected on the same vSwitch with multiple physical NICs. If the vSwitch only has one physical interface this does not happen. While virtual networking is useful, we recommend using dedicated physical interfaces for the Wanos VM where possible. If not, possibly look at creating a separate vSwitch for the ASA and Wanos wan0

To use Win Disk Imager to write to a SATA drive, an external HDD bay can be used.
CCIE RS, CCIE SP, Mnet&sys

Note: Forum posts may be outdated. Please see the latest documentation at wanos.co/docs

windy

  • Member
  • ***
  • Posts: 19
    • View Profile
Re: clone a live machine running from flash sda to a physical disk sdb
« Reply #10 on: June 08, 2015, 10:38:43 AM »
thank you very much  :)