-
Static IP for a VM in Usermode Networking under QEMU/libvirt
I have a Windows XP VM running in the virtual network hosted in a system based on KNOPPIX-6.7.1 DVD, and would like to assign a static IP to the VM instead of one from DHCP. The virtual network is NAT forwarding installed 'out-of-box' in libvirt/qemu. According to the documentation at wiki.libvirt.org/page/Networking and libvirt.org/formatnetwork.html, this could be achieved by adding a <host> element inside the <dhcp> element of the network xml used by the VM, which is the virtual network named 'default' in my case. Using 'virsh net-edit' I seem to be able to add the <host> element
<host mac='{mac obtained from the guest xml, in /etc/libvirt/qemu/win-xp.xml}' name='xp-ip99.mycompany.local' ip='192.168.122.1' />
but the change doesn't seem to "stick" - when I queried the virtual network after the edit the host element never showed up. I am wondering if this might be due to the (mis-)configuration of my VM and the virtual network (what to look for, and how they should they be?), or perhaps the <host> element should be added in a different way? -- any help and pointers would be appreciated.
Systems info:
KNOPPIX_V6.7.1DVD - boot: knoppix64 fromhd=/dev/sda1
dpkg's installed: ibvirt0_0.8.3-5+squeeze2_i386.deb
libxenstore3.0_4.0.1-2_i386.deb
libvirt-bin_0.8.3-5+squeez2_i386.deb
python-libvirt_0.8.3-5+squeeze2_i386.deb
python-urlgrabber_3.9.1-4_all.deb
python-gtk-vnc_0.4.1-4_i386.deb
virtinst_0.500.3-2_all.deb
virt-manager_0.8.4-8_all.deb
'virt-manager' is used to manage the VM.
Thank you in advance.
Boryeu Mao
-
Instead of solutions for a static IP, my network need for the Win XP VM under KVM is satisfied by an alternative (and ultimately better) alternative of a public bridged network. This was aided by the more up-to-date information on bridged KVM network contained in the following articles (for two different but KVM-compatible installations):
http://www.sgenomics.org/~jtang/blog...entific_Linux/
http://wiki.centos.org/HowTos/KVM
Under the bridged network, the VM is given a DHCP address but is accessible by its machine name.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Vintage Computer, Memorex Storage Unit For Main Frame Computer 1986, Movie Prop picture](/store/img/g/O4EAAOSwQgJisRdE/s-l225/Vintage-Computer-Memorex-Storage-Unit-For-Main-Fra.jpg)
Vintage Computer, Memorex Storage Unit For Main Frame Computer 1986, Movie Prop
$995.00
![IBM FRU26F7630 3390 DASD Hard Drive 10.8” from Vintage Mainframe picture](/store/img/g/lBkAAOSwE2dmYlgV/s-l225/IBM-FRU26F7630-3390-DASD-Hard-Drive-10-8-from-Vint.jpg)
IBM FRU26F7630 3390 DASD Hard Drive 10.8” from Vintage Mainframe
$249.99
![IBM mainframe server cpu IBM93 vintage cpu collector's item picture](/store/img/g/EYQAAOSwzWxmThYD/s-l225/IBM-mainframe-server-cpu-IBM93-vintage-cpu-collect.jpg)
IBM mainframe server cpu IBM93 vintage cpu collector's item
$125.99
![10 VINTAGE MAINFRAME COMPUTER PUNCH CARDS. IBM 80-column University of Iowa picture](/store/img/g/aFcAAOSwuB1gNhpB/s-l225/10-VINTAGE-MAINFRAME-COMPUTER-PUNCH-CARDS-IBM-80-c.jpg)
10 VINTAGE MAINFRAME COMPUTER PUNCH CARDS. IBM 80-column University of Iowa
$9.95
![*PAIR* 1960's Vintage GE-600 Series Mainframe Computer PCBs Bitslice Accumulator picture](/store/img/g/-qYAAOSwP21mTl9Q/s-l225/-PAIR-1960-s-Vintage-GE-600-Series-Mainframe-Compu.jpg)
*PAIR* 1960's Vintage GE-600 Series Mainframe Computer PCBs Bitslice Accumulator
$14.95
![Vintage Computer Punch Plug Board Mainframe Panels & Wiring Harness picture](/store/img/g/buQAAOSwRdNmaOVv/s-l225/Vintage-Computer-Punch-Plug-Board-Mainframe-Panels.jpg)
Vintage Computer Punch Plug Board Mainframe Panels & Wiring Harness
$40.00
![AST Bravo MS P/60 Vintage Mainframe Computer Old IBM Style NO HDD picture](/store/img/g/l58AAOSwOIpl~fXd/s-l225/AST-Bravo-MS-P-60-Vintage-Mainframe-Computer-Old-I.jpg)
AST Bravo MS P/60 Vintage Mainframe Computer Old IBM Style NO HDD
$129.95
![IBM mainframe emulation software, OS/360 DOS/360 VM/370 picture](/store/img/g/TlEAAOSwJoxcjjmS/s-l225/IBM-mainframe-emulation-software-OS-360-DOS-360-VM.jpg)
IBM mainframe emulation software, OS/360 DOS/360 VM/370
$12.50
![JINX Gaming Computer Mainframe Rare Collectible picture](/store/img/g/NCYAAOSwHSVmYzX0/s-l225/JINX-Gaming-Computer-Mainframe-Rare-Collectible-.jpg)
JINX Gaming Computer Mainframe Rare Collectible
$500.00
![AlphaServer AlphaStation DS25 54-30466-31 CPU Board 1Ghz KN410-CA picture](/store/img/g/du4AAOSw4A5YwKsJ/s-l225/AlphaServer-AlphaStation-DS25-54-30466-31-CPU-Boar.jpg)
AlphaServer AlphaStation DS25 54-30466-31 CPU Board 1Ghz KN410-CA
$350.00