Actions

Category

XenReference: Difference between revisions

From HacDC Wiki

No edit summary
Line 19: Line 19:
adduser vmadmin1
adduser vmadmin1
chsh -s /usr/bin/xen-login-shell vmadmin1
chsh -s /usr/bin/xen-login-shell vmadmin1
echo "$1 ALL=NOPASSWD:/usr/sbin/xm console $1, /usr/sbin/xm create -c /etc/xen/hosted/$1, /usr/sbin/xm destroy $1, /usr/sbin/reimage-dom $1 ?" >> /etc/sudoers


xen-create-image --hostname <hostname> --ip 10.0.0.x --gateway 10.0.0.1 --netmask 255.255.255.0 --vcpus 2 --pygrub --dist squeeze
xen-create-image --hostname <hostname> --ip 10.0.0.x --gateway 10.0.0.1 --netmask 255.255.255.0 --vcpus 2 --pygrub --dist squeeze

Revision as of 05:04, 21 October 2014

Test

xen-create-image --hostname test --ip 10.0.0.x --gateway 10.0.0.1 --netmask 255.255.255.0 --vcpus 2 --pygrub --dist squeeze

xen create /etc/xen/test.cfg

xen console test

<do stuff>

Ctrl + ]

xen-delete-image test

CreateUser

adduser vmadmin1
chsh -s /usr/bin/xen-login-shell vmadmin1

echo "$1 ALL=NOPASSWD:/usr/sbin/xm console $1, /usr/sbin/xm create -c /etc/xen/hosted/$1, /usr/sbin/xm destroy $1, /usr/sbin/reimage-dom $1 ?" >> /etc/sudoers 

xen-create-image --hostname <hostname> --ip 10.0.0.x --gateway 10.0.0.1 --netmask 255.255.255.0 --vcpus 2 --pygrub --dist squeeze

#edit /etc/xen/virtual_machine.cfg to include xen_shell = 'vmadmin1,vmadmin2' with appropriate users

#Check user home dir FS permissions.
#Add user SSH keys if any.

/etc/init.d/sudo restart

InstallationNotes

  1. In /etc/xen/xend-config.sxp uncomment the network-nat and vif-nat entries.

Reference

https://wiki.debian.org/Xen#Domain_0_.28Host.29_Installation http://dev.e-taxonomy.eu/trac/wiki/Xen_installation http://wiki.xenproject.org/wiki/Nested_Virtualization_in_Xen#How_to_use_nested http://wiki.xen.org/wiki/Host_Configuration/Networking#Routing http://blog.manula.org/2012/04/manually-configuring-nat-networking-in.html http://www.fclose.com/816/port-forwarding-using-iptables/ https://wiki.debian.org/iptables http://blog.manula.org/2011/02/xen-bridged-networking-mode.html

This category currently contains no pages or media.