<?xml version="1.0" encoding="UTF-8" ?> <Configuration xmlns="urn:com.io7m.waxmill.config:1:0"> <Paths> <Path type="ZFSExecutable" value="/sbin/zfs"/> <Path type="GRUBBhyveExecutable" value="/usr/local/sbin/grub-bhyve"/> <Path type="BhyveExecutable" value="/usr/sbin/bhyve"/> <Path type="BhyveCtlExecutable" value="/usr/sbin/bhyvectl"/> <Path type="CuExecutable" value="/usr/bin/cu"/> <Path type="VirtualMachineConfigurationDirectory" value="/etc/waxmill/vm"/> <Path type="IfconfigExecutable" value="/sbin/ifconfig"/> </Paths> <ZFSFilesystems> <ZFSFilesystem type="VirtualMachineRuntimeFilesystem" name="storage/vm" mountPoint="/storage/vm"/> </ZFSFilesystems> </Configuration>
$ waxmill vm-define \ --name 'com.io7m.example4' \ --cpu-count 4 \ --comment 'An example machine' \ --memory-gigabytes 1 \ --memory-megabytes 512 $ waxmill vm-list # ID Name 800a2dad-3367-4a98-879a-0fac219f55f4 com.io7m.example2 a866f9e4-f6c1-4ecf-ad49-000925eefa0a com.io7m.example4 538a90e4-d50d-4511-8643-ae418279bac4 com.io7m.example 7c2bcb79-f20c-47fa-812b-8994f17f97b2 com.io7m.example5
$ waxmill vm-export --machine a866f9e4-f6c1-4ecf-ad49-000925eefa0a <?xml version="1.0" encoding="UTF-8"?> <wxm:VirtualMachines xmlns:wxm="urn:com.io7m.waxmill.vm:1:0"> <wxm:VirtualMachine id="a866f9e4-f6c1-4ecf-ad49-000925eefa0a" name="com.io7m.example4"> <wxm:Comment>An example machine</wxm:Comment> <wxm:CPUTopology sockets="1" threads="1" cores="4"/> <wxm:Memory gigabytes="1" megabytes="512"/> <wxm:Devices> <wxm:HostBridge vendor="UNSPECIFIED"> <wxm:DeviceSlot bus="0" slot="0" function="0"/> </wxm:HostBridge> </wxm:Devices> <wxm:BootConfigurations/> <wxm:Flags> <wxm:Flag name="DisableMPTableGeneration" enabled="false"/> <wxm:Flag name="ForceVirtualIOPCIToUseMSI" enabled="false"/> <wxm:Flag name="GenerateACPITables" enabled="true"/> <wxm:Flag name="GuestAPICIsX2APIC" enabled="false"/> <wxm:Flag name="IncludeGuestMemoryInCoreFiles" enabled="false"/> <wxm:Flag name="RealTimeClockIsUTC" enabled="false"/> <wxm:Flag name="WireGuestMemory" enabled="false"/> <wxm:Flag name="ExitCPUOnPAUSE" enabled="true"/> <wxm:Flag name="YieldCPUOnHLT" enabled="true"/> </wxm:Flags> </wxm:VirtualMachine> </wxm:VirtualMachines>
$ waxmill vm-realize \ --machine a866f9e4-f6c1-4ecf-ad49-000925eefa0a \ --dry-run true /sbin/zfs create -V 10gb storage/vm/a866f9e4-f6c1-4ecf-ad49-000925eefa0a/disk-0_1_0 $ waxmill vm-realize \ --machine a866f9e4-f6c1-4ecf-ad49-000925eefa0a $ waxmill vm-realize \ --machine a866f9e4-f6c1-4ecf-ad49-000925eefa0a INFO com.io7m.waxmill.cmdline.internal.WXMCommandVMRealize: ZFS volume storage/vm/a866f9e4-f6c1-4ecf-ad49-000925eefa0a/disk-0_1_0 exists and has the correct size
<?xml version="1.0" encoding="UTF-8" ?> <BootConfigurations xmlns="urn:com.io7m.waxmill.vm:1:0"> <BootConfigurationGRUBBhyve name="install"> <BootDiskAttachments> <BootDiskAttachment> <DeviceSlot bus="0" slot="4" function="0"/> <StorageBackendFile path="/storage/images/openbsd/install67.iso"/> </BootDiskAttachment> </BootDiskAttachments> <GRUBBhyveKernelOpenBSD> <BSDBootDevice kernelPath="/6.7/amd64/bsd.rd"> <DeviceSlot bus="0" slot="4" function="0"/> </BSDBootDevice> </GRUBBhyveKernelOpenBSD> </BootConfigurationGRUBBhyve> </BootConfigurations>
$ waxmill vm-run \ --machine 538a90e4-d50d-4511-8643-ae418279bac4 \ --boot-configuration install rdmsr to register 0x140 on vcpu 0 rdmsr to register 0x34 on vcpu 0 Unhandled ps2 mouse command 0xe1 Unhandled ps2 mouse command 0x88
#!/bin/sh exec /usr/local/bin/waxmill vm-run \ --machine 3bab9914-dfe2-4a37-9c19-c7e9b06c854b \ --boot-configuration normal
#!/bin/sh exec /usr/local/bin/waxmill vm-kill \ --machine 3bab9914-dfe2-4a37-9c19-c7e9b06c854b \