WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Re: [Xen-devel] Xen document day (Oct 12 or 26)

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Re: [Xen-devel] Xen document day (Oct 12 or 26)
From: bofh <goodb0fh@xxxxxxxxx>
Date: Wed, 26 Oct 2011 16:51:06 -0400
Delivery-date: Wed, 26 Oct 2011 13:52:06 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=7mFZWn/4WWqTf1/zJCW4fK2OyCM+wd+Xl4vW9jwYHRw=; b=wN+VjdlrOPdwB8msuG0ncSDmqw/CcKSV7lgnQQlhiVYxh8jg/yLxWq1Nbpd7pa3wZ3 xpPXsyJi6ox7PdO7Lq8Ac/1PoS84fZ6tBCDwffv+KchPRCcBaHLnDyI4uEi5X9SfbzDO 1ymJXL03LkemNN7lX6W0vIhix/sRzq8uM29p8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAOzFzEjZKCmMDx+VbdCtEkzHM5_RcYM=4K2DZwtzu=ua6bQi9g@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4E92D809.9000504@xxxxxxx> <20111010160404.GB28646@xxxxxxxxxxxxxxxxx> <4E946EB9.7050209@xxxxxxx> <CAOzFzEhU3YJtzyJn7rcUXUmwz+PhaxRsKQaYU+2-eHrv-LyD6g@xxxxxxxxxxxxxx> <20111013180244.GC15499@xxxxxxxxxxxxxxxxx> <5400260811821008556@unknownmsgid> <1318859996.16132.16.camel@xxxxxxxxxxxxxxxxxxxxxx> <4E9C4516.2070902@xxxxxxx> <1318864667.16132.22.camel@xxxxxxxxxxxxxxxxxxxxxx> <4E9C4BAB.9020605@xxxxxxx> <20111018132618.GA19611@xxxxxxxxxxxxxxxxxxx> <1319013528.3385.59.camel@xxxxxxxxxxxxxxxxxxxxxx> <4E9F1361.5020906@xxxxxxx> <CAOzFzEjioey=65ACAJH50Nf+gHUt4HCXupfY9bHwaqCMEoquow@xxxxxxxxxxxxxx> <4EA18FAD.7080102@xxxxxxx> <CAOzFzEjZKCmMDx+VbdCtEkzHM5_RcYM=4K2DZwtzu=ua6bQi9g@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, Oct 21, 2011 at 7:33 PM, Joseph Glanville
<joseph.glanville@xxxxxxxxxxxxxx> wrote:
> On 22 October 2011 02:28, Lars Kurth <lars.kurth@xxxxxxx> wrote:
>> On 21/10/2011 04:44, Joseph Glanville wrote:
>>> Alot of us take for granted that we have been using Xen for a long time
>>> and many of these things come so naturally to us - whereas from the outside
>>> it all seems too difficult.
>>
>> I think what you seem to be saying is that there would be extremely high
>> value in having a "Getting started" guide and some other entry level
>> documentation (even if just an index page) accessible from the wiki front
>> page.
>
> Precisely, documenting the more advanced features of Xen seems to be
> something that we can approach over time. Beginner documentation is
> immeadiately lacking and seems to be an easier target that would benefit
> more people.

Yes please!!!!  For example, I just created a VM:

---/etc/xen/win7.cfg---
kernel = '/usr/lib/xen-4.1/boot/hvmloader'
builder = 'hvm'
memory = '4096'
device_model = '/usr/lib/xen-4.1/bin/qemu-dm'
vcpus=8

# Disk
disk = ['file:/home/xen/domains/win7/win7.img,ioemu:hda,w',
'file:/home/me/Downloads/installers_windows/en_windows_7_enterprise_x64_dvd_x15-70749.iso,ioemu:hdc:cdrom,r',
'file:/home/me/cdr.iso,ioemu:hdd:cdrom,r' ]

# Hostname
name = 'win7'

# Networking
vif = ['type=ioemu, bridge=br0' ]

# Behavior
boot = 'd'
vnc = 1
vncviewer= 1
sdl = 0
--------------------
-----/etc/network/interfaces-----
# 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 br0 virtual0 nat0
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

# The bridge for Xen virtual machines
iface br0 inet manual
    bridge_ports eth0
    bridge_maxwait 0

# The bridge for non-routed network
iface virtual0 inet manual
    bridge_maxwait 0

# The bridge for natted stuff
iface nat0 inet manual
    bridge_maxwait 0
----------------------------
# ifconfig -a
br0       Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff
          inet6 addr: fe80::f2de:f1ff:fe40:b2a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:36354 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6672740 (6.3 MiB)  TX bytes:3857 (3.7 KiB)

eth0      Link encap:Ethernet  HWaddr f0:de:f1:40:0b:2a
          inet addr:10.10.20.135  Bcast:10.10.21.255  Mask:255.255.254.0
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:4044776 errors:0 dropped:87 overruns:0 frame:0
          TX packets:27576 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:605780353 (577.7 MiB)  TX bytes:4929467 (4.7 MiB)
          Interrupt:20 Memory:f2600000-f2620000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3323354 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3323354 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:33084455363 (30.8 GiB)  TX bytes:33084455363 (30.8 GiB)

tap5.0    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:126 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:16348 (15.9 KiB)  TX bytes:4995 (4.8 KiB)

vif5.0    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:24:d7:8f:52:a0
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

# brctl show
br0             8000.feffffffffff       no              tap5.0
                                                        vif5.0
# xl list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0 11935     8     r-----   61565.3
win7                                         5  4099     8     -b----      69.7


I could have sworn I have everything done right, but I found out I'm
missing a few pieces of information.

1)  How do I create a second interface in dom0 to interface with br0?
2)  What Windows drivers should I use, if any?
3)  How do I insert a USB thumbdrive into the VM?
4)  xm has "start".  xl doesn't seem to have "start"?
5)  For disks, is ioemu the best to use?  I'm just using a file on the
filesystem as the VM's drive.

Sorry to interrupt this thread, but hopefully you experienced xen
users can see what a newbie to xen faces

-- 
http://www.glumbert.com/media/shift
http://www.youtube.com/watch?v=tGvHNNOLnCk
"This officer's men seem to follow him merely out of idle curiosity."
-- Sandhurst officer cadet evaluation.
"Securing an environment of Windows platforms from abuse - external or
internal - is akin to trying to install sprinklers in a fireworks
factory where smoking on the job is permitted."  -- Gene Spafford
learn french:  http://www.youtube.com/watch?v=30v_g83VHK4

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>