LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Installing windows server as a kvm guest on ubuntu 8.10 (interpid) (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/installing-windows-server-as-a-kvm-guest-on-ubuntu-8-10-interpid-762845/)

vganesh 10-18-2009 07:21 PM

Installing windows server as a kvm guest on ubuntu 8.10 (interpid)
 
1 Attachment(s)
Hello,

Issues with virtualization using kvm on ubuntu 8.1 (interpid) with Windows Server as client.

I followed the instructions from http://www.howtoforge.com/installing....10-desktop-p3 and successfully installed and login to a Windows Server 2003 client. Thanks a lot for this wonderful instructions.

Now I am running into two issues, not able to read the CD and no network connections from Windows client. Please see the attached screenshot.png file.

1. From Windows Server 2003 client, I am not able to read the CD (D: drive). What steps do I need to follow so that from Windows client the CD information can be accessed? Are there instructions available somewhere I can follow?

2. What steps do I need to follow to enable networks from Windows client? Output from ipconfig and netstat commands,from a command prompt, on Windows, are empty.

I tried to follow the steps listed at http://www.linux-kvm.com/content/tip...etwork-drivers. The author of this article has mentioned these instructions were tested on Fedora not ubuntu. I have burned the ISO format drivers to a CD successfully. The files in this CD are listed below. However, I can't access these files from Windows client though. I can't read any USB ports either from Windows client.
<user-name>@ubuntu:~$ ls /media/CDROM/
kvm-guest-drivers-linux-1.tar.gz Windows 2000 Windows XP
<user-name>@ubuntu:~$

I am not able to complete the step "Reboot Windows Guest using Virtio Option" successfully. The qemu-system-x86_64 command fails as shown below. I guess the parameters for this command are not quite right for ubuntu and maybe they will work on fedora or maybe nic model is not correct.

<user-name>@ubuntu:~$ qemu-system-x86_64 -hda /host/ubuntu/win2000server.img -net nic,model=virtio -net user ...
qemu: Unsupported NIC: virtio
<user-name>@ubuntu:~$ qemu-system-x86_64 -hda /host/ubuntu/win2000server.img -net nic,model=virtio -net user
qemu: Unsupported NIC: virtio
<user-name>@ubuntu:~$ qemu-system-x86_64 -hda /host/ubuntu/win2000server.img -net nic,model=virtio -net tap
warning: could not open /dev/net/tun: no virtual network emulation
Could not initialize device 'tap'
<user-name>@ubuntu:~$


I thought model virtio is not the correct nic on my computer. From the output of the command 'lspci -tv' I could see that I have Intel's interface controller but I do not know what must be the model name for it that must be passed as a parameter to the above command.


<user-name>@ubuntu:~$ lspci -tv
...
+-1f.0 Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller
...

Thanks and regards,
Ganesh

dyasny 10-19-2009 03:55 AM

first of all, since libvirt and KVM are both under the Redhat hood, you're better off with Fedora, since this is the distro the stuff really gets tested on

as for your issues:

1. for the CD to be recognised, you need to mount it - either by specifying hdc=/dev/cdrom in the startup line, or by using virsh to change the CD once the VM is running

2. networking is better done using bridge-utils. Bridge a physical NIC up, and then attach the virtual NICs to it - this will effectively create a virtual switch for the VMs to connet to, which also has a physical NIC to use for networking

dyasny 10-19-2009 03:56 AM

If you don't have the virtIO drivers in Ubuntu, you will have to make do with the e1000 or rtl8139 emulated NICs.

in Fedora there's a package with the drivers you can download, and then copy over to the Windows VM and install.


All times are GMT -5. The time now is 03:52 AM.