openSUSE:WebYaST Deployment Virtual
Virtual appliance
How to boot VDMK(Virtual Machine Disk) in VirtualBox
If you want to boot the VMware VMDK(Virtual Machine Disk) image, created with VMware, you have to change the Hard Disk settings in your VirtualBox
- select the virtual machine in VirtualBox
- go to the Settings/Hard Disks select SCSI (Lsilogic) and check the "Enable Addition Controller"
- add the vmware vdmk file as hard disk attachment and select SCSI Port 0 instead of IDE Primary Master
- save the changes and boot machine
Network Bridge
Network bridge allows virtual machines to access the host’s physical network.
VMware player
- select the virtual machine in VMware player
- go to the VM/Settings/Network Adapter/Network Connection and check the menu item "Bridget: Connected directly to the physical network"
- save changes
Troubleshoot:
Error: Could not open /dev/vmmon: No such file or directory.
Solution:
modprobe vmmon
Error: Failed to open device "/dev/vmci": No such file or directory Please make sure that the kernel module 'vmci' is loaded.
Solution:
modprobe vmci
Error: Bridged networking on /dev/vmnet0 failed
Solution:
vmware-networks --stop vmware-networks --start
Virtual Box
- select the virtual machine in VirtualBox
- go to the Settings/Network select "Bridged Adapter" in Attached to and Name "eth0"
- save changes and boot virtual machine
If you get an error like yastwc "WebYaST could not determine the IP address for eth0", do following steps:
ip link set eth0 down ip link set eth0 up dhcpd eth0 rcyastwc restart
Qemu
To bridge the network in Qemu you'll need to install the brctl, tunctl packages.
tunctl -t tap0 -u <username> ip link set eth0 down brctl addbr br0 brctl addif br0 eth0 brctl addif br0 tap0 ip link set eth0 up ip link set tap0 up ip link set br0 up dhcpcd br0
- Next you'll need to create the /etc/qemu-ifup script
#!/bin/sh echo "Executing /etc/qemu-ifup" echo "Bringing up $1 for bridged mode..." sudo /sbin/ip link set dev "$1" up promisc on echo "Adding $1 to br0..." sudo /sbin/brctl addif br0 $1 sleep 2
- Then make /etc/qemu-ifup script executable for all users
chmod 755 /etc/qemu-ifup
- Running QEMU
qemu-kvm -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no <path_to_vmdk>
If you get this error "/etc/qemu-ifdown: could not launch network script", then
sudo chmod 666 /dev/net/tun
- Static IP adress
If you want to have static IP adress, then use
-net nic,vlan=0,model=rtl8139,macaddr=52:54:00:01:05:01
instead of
-net nic,vlan=0