XP under Ubuntu 10.04 KVM

Have fresh Ubuntu 10.04 server install with Gnome on top.

 


Installed KVM New guest = Windows XP but it needs bridged networking..

Google: ubuntu 10.04 kvm configure  network bridge

Per http://www.techotopia.com/index.php/Creating_an_Ubuntu_10.x_KVM_Networked_Bridge_Interface & http://www.howtoforge.com/virtualization-with-kvm-on-ubuntu-10.10

ifconfig to view current which tells me I am eth0, then

sudo gedit /etc/network/interfaces

Change from:

# 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
# 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

to

# 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

#Added bbdaf
auto br0
iface br0 inet dhcp
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0

Then retstart networking:

sudo /etc/init.d/networking restart

Then ifconfig to check bridge started, yes br0 is in the list

 


Installed SP3, took, like, forever.. so...


Need VirtIO drivers

Went to: http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/

Downloaded  ISO and mounted in XP SP3 guest CDROM, added new QCOW2 volume with VirtIO interface and restart guest.  Found new hardware and installed drivers, but... Driver wont start in XP (Code 39) so..

Rolled back Guest to previous step, disconnected ISO from CDROM, downloaded .vfd version 1.1.16 from the above link and added as floppy to guest.  This time the driver installed ok

Shutdown guest and removed system drive & readded as virtio device, restarted guest, good thus far


Shutdown guest, changed NIC from RT8139 to virtio & restarted guest drivers found, is all good

 


Video performance:  will try vmvga driver

downloaded ISO from: http://www.linux-kvm.com/sites/default/files/vmwarevga32-kvm.iso

With guest running connected above ISO image and driver autoinstalled, shutdown guest, changed v ideo to vmvga & restarted guest.  Hung after booting into windows.  Forced off, restarted and video seems ok..

 


Somehow after a reboot I can ping on the network but browsing cant find sites.  Assume Ubuntu has screwed up getting DNS servers via DHCP after adding br0 previously. So sudo gedit /etc/network/interfaces again and for eth0 added 'nameserver 192.168.1.1 and restarted networking all good now


 

Powered off and inserted both serial/parallel port expansion card & extra SI sata card. Now to see if can dedicate parallel port card to windows XP

With Virtual Machine Manager we can choose add hardware and select 'Physical Host Device' -> PCI Device

I know the parallel port PCI card is a NetMos device but we see 3 NetMos devices in the dropdown.. to identify which PCI device is the parallel port I can do:

lspci

kong@kong:~$ lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge Alternate
00:01.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (int gfx)
00:04.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 0)
00:0a.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 5)
00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode]
00:12.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:12.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:12.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:13.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:13.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3c)
00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
00:14.5 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] Link Control
01:05.0 VGA compatible controller: ATI Technologies Inc Device 9715
01:05.1 Audio device: ATI Technologies Inc RS880 Audio Device [Radeon HD 4200]
02:00.0 Multimedia video controller: Conexant Systems, Inc. CX23885 PCI Video and Audio Decoder (rev 04)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
04:06.0 Serial controller: NetMos Technology PCI 9865 Multi-I/O Controller
04:06.1 Serial controller: NetMos Technology PCI 9865 Multi-I/O Controller
04:06.2 Parallel controller: NetMos Technology PCI 9865 Multi-I/O Controller
04:07.0 RAID bus controller: Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller (rev 02)
04:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)
So, the parallel port is 04:06.2