Dan1317
November 21st, 2008, 07:36 PM
Hello I am trying to impress my boss with KVM. Sadly I cannot get it to work. I have followed the steps in the mega thread and in the ubuntu KVM wiki. Still I am missing something. Here's what I have so far. I installed ubuntu-virt-server and ubuntu-virt-mgmt. I added myself as a user to libvirtd group (And logged out)
here is what my /etc/network/interface is:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
#auto lo
#iface lo inet loopback
# The primary network interface
#auto eth0
#iface eth0 inet dhcp
#Above has been disabled by DAN, uncomment auto lo and auto eth0 to return to factory setting
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
#auto br0
#iface br0 inet static
# address 192.168.0.125
# network 192.168.0.0
# netmask 255.255.255.0
# broadcast 192.168.0.255
# gateway 192.168.0.1
# bridged_ports eth0
# bridge_fd 9
# bridge_hello 2
# bridge_maxage 12
# bridge_stp off
auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
(I couldn't get static br0 to work so I just used dhcp)
I open up Virtual Machine Manager from System Tools. I have localhost(System) and localhost(User). I connect localhost(System) to the QEMU hypervisor. It connects. Now I make a machine (Windows XP) I set my architecture to x86_64 and only KVM for hypervisor is available. I set the IMG to be in my home folder (the default) When I start the machine it loads the windows installer up. The installer sees the virtual disk and installs the setup files to it. But when it restarts to begin installing XP, it doesn't start back up. When I manually start it I get this message:
Plex86/Bochs VGABios current-cvs 25 Sep 2008
This VGA/VBE Bios is released under the GNU LGPL
Please visit:
http://bochs.sourceforge.net
http://nongnu.org/vgabios
currus-compatible VGA is detected
QEMU BIOS - build: 09/25/08
$Revision: 1.182 $ $Date: 2007/08/01 17:09:51 $
Options: apmbios pcibios eltorito rombios32
ata0master: QEMU HARDDISK ATA-7 HARD-DISK (4000 MBytes)
ata1master: QEMU DVD-ROM ATAPI-4 CD-Rom/DVD-Rom
Booting from Hard Disk...
A disk read error occured
Press Ctrl+Alt+Del to restart
And that is all that happens. Any information would be greatly appreciated. I could find no help on this. The only thing that I can think of (And I am pretty inexperienced) is maybe a permission is wrong somewhere or the hypervisor isn't connected right.
Also another note is that when I try to build a virtual server on localhost(User) no option for network is given. It only says user. (It also does the same thing when installing XP)
Again thanks for anyone that can help me or point me in the right direction
here is what my /etc/network/interface is:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
#auto lo
#iface lo inet loopback
# The primary network interface
#auto eth0
#iface eth0 inet dhcp
#Above has been disabled by DAN, uncomment auto lo and auto eth0 to return to factory setting
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
#auto br0
#iface br0 inet static
# address 192.168.0.125
# network 192.168.0.0
# netmask 255.255.255.0
# broadcast 192.168.0.255
# gateway 192.168.0.1
# bridged_ports eth0
# bridge_fd 9
# bridge_hello 2
# bridge_maxage 12
# bridge_stp off
auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
(I couldn't get static br0 to work so I just used dhcp)
I open up Virtual Machine Manager from System Tools. I have localhost(System) and localhost(User). I connect localhost(System) to the QEMU hypervisor. It connects. Now I make a machine (Windows XP) I set my architecture to x86_64 and only KVM for hypervisor is available. I set the IMG to be in my home folder (the default) When I start the machine it loads the windows installer up. The installer sees the virtual disk and installs the setup files to it. But when it restarts to begin installing XP, it doesn't start back up. When I manually start it I get this message:
Plex86/Bochs VGABios current-cvs 25 Sep 2008
This VGA/VBE Bios is released under the GNU LGPL
Please visit:
http://bochs.sourceforge.net
http://nongnu.org/vgabios
currus-compatible VGA is detected
QEMU BIOS - build: 09/25/08
$Revision: 1.182 $ $Date: 2007/08/01 17:09:51 $
Options: apmbios pcibios eltorito rombios32
ata0master: QEMU HARDDISK ATA-7 HARD-DISK (4000 MBytes)
ata1master: QEMU DVD-ROM ATAPI-4 CD-Rom/DVD-Rom
Booting from Hard Disk...
A disk read error occured
Press Ctrl+Alt+Del to restart
And that is all that happens. Any information would be greatly appreciated. I could find no help on this. The only thing that I can think of (And I am pretty inexperienced) is maybe a permission is wrong somewhere or the hypervisor isn't connected right.
Also another note is that when I try to build a virtual server on localhost(User) no option for network is given. It only says user. (It also does the same thing when installing XP)
Again thanks for anyone that can help me or point me in the right direction