diff --git a/localdev/playbooks/bootstrap-ucloud.yml b/localdev/playbooks/bootstrap-ucloud.yml index a383d2c..dbd16a2 100644 --- a/localdev/playbooks/bootstrap-ucloud.yml +++ b/localdev/playbooks/bootstrap-ucloud.yml @@ -28,4 +28,13 @@ command: cmd: shutdown -r now 'Rebooting to complete system upgrade' removes: /var/run/reboot-required + - name: Install xrdp + apt: + state: present + pkg: + - xrdp + - name: Reboot system if required. + command: + cmd: shutdown -r now 'Rebooting to complete system upgrade' + removes: /var/run/reboot-required \ No newline at end of file diff --git a/provision/CreateVm.ps1 b/provision/CreateVm.ps1 index 7bb011d..d1566ea 100644 --- a/provision/CreateVm.ps1 +++ b/provision/CreateVm.ps1 @@ -15,6 +15,7 @@ Resize-VHD -Path $VHDFile -SizeBytes $VHDSize New-VM @VM Set-VMFirmware "$VMName" -EnableSecureBoot Off Add-VMDvdDrive "$VMName" -Path "$VMName-seed.iso" +Set-VM "$VMName" -EnhancedSessionTransportType HvSocket Start-VM $VMName diff --git a/provision/arch.sh b/provision/arch.sh index a432b00..63113f9 100755 --- a/provision/arch.sh +++ b/provision/arch.sh @@ -9,15 +9,20 @@ arch_file="arch.qcow2" focal_url="https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img" focal_file="focal.img" +bionic_url="https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img" +bionic_file="bionic.img" + # download os image file #wget $arch_url -O $arch_file #wget $focal_url -O $focal_file +#wget $bionic_url -O $bionic_file # -- per machine vm_id="27" # convert and copy image to windows dir #qemu-img convert $arch_file -O vhdx "$vhd_dir$vm_id"-os.vhdx qemu-img convert $focal_file -O vhdx "$vhd_dir$vm_id"-os.vhdx +#qemu-img convert $bionic_file -O vhdx "$vhd_dir$vm_id"-os.vhdx #qemu-img convert $arch_file -O vpc "$vhd_dir$vm_id"-os.vhd # generate seed iso and save in windows dir