Xen64-server
Версия от 13:18, 19 сентября 2013; Vovan (обсуждение | вклад) (Новая страница: «/etc/network/interfaces <pre> auto br_inet iface br_inet inet static address 192.168.254.254 network 192.168.254.0 netmas…»)
/etc/network/interfaces
auto br_inet iface br_inet inet static address 192.168.254.254 network 192.168.254.0 netmask 255.255.255.0 bridge_ports eth0 auto br_lan iface br_lan inet static address 192.168.10.254 network 192.168.10.0 netmask 255.255.255.0 broadcast 192.168.10.255 gateway 192.168.10.1 dns_nameservers 192.168.10.1 bridge_ports eth1 auto br_wifi iface br_wifi inet static #address 172.16.1.254 #network 172.16.0.0 #netmask 255.240.0.0 #broadcast 172.31.255.255 address 192.168.12.5 network 192.168.12.0 netmask 255.255.255.254 bridge_ports eth2
xm list
xm list Name ID Mem VCPUs State Time(s) Domain-0 0 1234 8 r----- 574644.6 asterisk-hvm-server 16 512 2 -b---- 595.6 calculate-hvm-server 24 1024 4 -b---- 14721.3 internet-hvm-server 13 2048 2 -b---- 151665.4 lamp-stud-hvm-server 8 2048 2 -b---- 61441.7 ldap-server 15 512 2 -b---- 1078.3 samba-server 5 512 1 -b---- 18430.4 web-hvm-server 6 3072 4 -b---- 286711.1 zimbra-server 7 4096 4 r----- 1320609.7
cat /etc/xen/asterisk-hvm-server
import os, re arch = os.uname()[4] if re.search('64', arch): arch_libdir = 'lib64' else: arch_libdir = 'lib' kernel = "/usr/lib/xen-4.1/boot/hvmloader" builder = 'hvm' #memory = '1024' memory = '512' vcpus = 2 shadow_memory = 8 #gfx_passthru=1 #pci=['0000:02:00.0'] disk = [ 'phy:/dev/vg/asterisk-hvm-server,hda,w' ] #, 'file:/home/administrator/precisesrv64.iso,hdc:cdrom,r' ] # Hostname and Networking name = 'asterisk-hvm-server' #vif = [ 'type=ioemu, bridge=br_lan' ] vif = ['mac=00:17:3f:07:f8:5c, bridge=br_lan', 'mac=00:17:3f:08:f9:51, bridge=br_wifi'] # Behaviour boot='cd' #d is cdrom boot, c is disk boot. #serial='pty' #usbdevice='tablet' usb=1 usbdevice='host:12d1:1001' vnc=1 vncviewer=1 sdl=0 vfb = [ 'type=vnc,vnclisten=0.0.0.0,vncdisplay=1,vncpasswd=*******' ]
cat /etc/xen/calculate-hvm-server
import os, re arch = os.uname()[4] if re.search('64', arch): arch_libdir = 'lib64' else: arch_libdir = 'lib' kernel = "/usr/lib/xen-4.1/boot/hvmloader" builder = 'hvm' memory = '1024' vcpus = 4 shadow_memory = 16 #disk = [ 'phy:/dev/vg/calculate-hvm-server-root,hda,w', 'phy:/dev/sdc,hdb,w' ] disk = [ 'phy:/dev/vg/calculate-hvm-server-root,hda,w', 'phy:/dev/vg/calculate-hvm-server-data,hdb,w' ] #old #'phy:/dev/disk/by-uuid/8e0fbcca-94d6-4057-a905-3b1ade861f19,hdb,w' ] #disk = [ 'phy:/dev/vg/calculate-hvm-server-root,hda,w', 'phy:/dev/vg/calculate-hvm-server-data,hdb,w', 'tap:aio:/mnt/cds/home-cds-storage.img,hdc,w' ] #disk = [ 'phy:/dev/vg/calculate-hvm-server-root,hda,w', 'tap:aio:/mnt/cds/home-cds-storage.img,hdc,w' ] #disk = [ 'phy:/dev/vg/calculate-hvm-server-root,hda,w'] #, 'file:/home/administrator/pmagic.iso,hdc:cdrom,r' ] # Hostname and Networking name = 'calculate-hvm-server' vif = ['mac=00:16:ee:d2:f4:2c, bridge=br_lan'] # Behaviour boot='dc' #d is cdrom boot, c is disk boot. vnc=1 vncviewer=1 sdl=0 vfb = [ 'type=vnc,vnclisten=0.0.0.0,vncdisplay=6,vncpasswd=******' ]