Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vms:ipfire [2015/03/31 18:25]
admin
vms:ipfire [2015/03/31 19:28] (current)
admin [Start the VM]
Line 68: Line 68:
 name = "​ipfire"​ name = "​ipfire"​
 vcpus=1 # adjust as needed, though a single processor is fine vcpus=1 # adjust as needed, though a single processor is fine
- +
 # this is the heart of the matter, setting up the correct network interfaces # this is the heart of the matter, setting up the correct network interfaces
 # the bridge should match your configuration (must be defined to Xen) # the bridge should match your configuration (must be defined to Xen)
Line 74: Line 74:
 # vifname simply allows you to find the interface from the DOM0 using ifconfig # vifname simply allows you to find the interface from the DOM0 using ifconfig
 vif         = [ vif         = [
-                  '​mac=00:​17:​3e:​be:​b1:​1a,​ bridge=xenbr0,​vifname=fw_red', ​   ## Red +                  '​mac=00:​17:​3e:​be:​b1:​1a,​ bridge=xenbr0,​vifname=fw_green', ​ ## Green 
-                  '​mac=00:​17:​3e:​be:​b1:​1b,​ bridge=xenbr1,​vifname=fw_orange', ## Orange +                  '​mac=00:​17:​3e:​be:​b1:​1b,​ bridge=xenbr1,​vifname=fw_red', ​   ## Red 
-                  '​mac=00:​17:​3e:​be:​b1:​1c,​ bridge=xenbr2,​vifname=fw_green', ​ ## Green +                 '​mac=00:​17:​3e:​be:​b1:​1c,​ bridge=xenbr2,​vifname=fw_blue', ​  ​## Blue 
-                  '​mac=00:​17:​3e:​be:​b1:​1d,​ bridge=xenbr3,​vifname=fw_blue', ​  ​## Blue+                 '​mac=00:​17:​3e:​be:​b1:​1d,​ bridge=xenbr3,​vifname=fw_orange', ## Orange
                ]                ]
- +
 # points to the storage used for this DOMU # points to the storage used for this DOMU
 disk = [ disk = [
-                '​phy:/​dev/​vg0/​ipfire,​hda,​w',​+                ​'​file:/​opt/​xen/​X-Local-VMS/​ipfire,​hda,​w',​ 
 +# for LVM partitions: ​'​phy:/​dev/​vg0/​ipfire,​hda,​w',​
        ]        ]
-  + 
- +
 localtime=0 ​ # take time from server clock localtime=0 ​ # take time from server clock
 serial='​pty'​ # allow us to connect from xl console serial='​pty'​ # allow us to connect from xl console
Line 95: Line 96:
 usbdevice='​tablet'​ usbdevice='​tablet'​
 # do not use VNC since console is redirected to DOM0 # do not use VNC since console is redirected to DOM0
-#​vnc=1 ​+#vnc=1
 #​vncdisplay=1 #​vncdisplay=1
 </​code>​ </​code>​
 +
 +----
 +==== Start the VM ====
 +----
 +Now we'd like to start the virtual machine.
 +
 +Unfortunately,​ we're using the XAPI toolstack which doesn'​t provide an equivalent to the **xl create <vm> -c**.\\
 +Well have to modify the toolstack and reboot (had no time to search how to only reboot the toolstack itself).
 +
 +<​code>​
 +> nano /​etc/​default/​xen
 +
 +TOOLSTACK=xl
 +
 +> reboot
 +</​code>​
 +
 +Start the virtual with
 +<​code>​
 +> cd /​opt/​xen/​X-Local-VMS/​
 +> xl create ipfire -c
 +</​code>​
 +
 +It will boot, do some housekeeping and reboot. During the reboot you will lose your console, and must reconnect.
 +
 +the -c tells xl to connect you to the console immediately. You can watch as the housekeeping is done (mainly, enlarging the / partition), then you will see the reboot message. When you are back at the DOM0 prompt, reconnect with
 +<​code>​
 +> xl console ipfire
 +</​code>​
 +
 +Then configure the router. Remember, if you are connected over a terminal window on your workstation (likely via ssh), the size of the window should be as close as possible to 80 char x 24 lines. This is an ongoing issue with the scon install, and one that can not be easily fixed.
 +
 ==== STOP ==== ==== STOP ====
 ++++ Deprecated method (click to see) | ++++ Deprecated method (click to see) |