Skip to content

Commit

Permalink
GUI working
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSaelzler committed Sep 28, 2021
1 parent 50ebfb1 commit 17c8112
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions localdev/playbooks/bootstrap-ucloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

1 change: 1 addition & 0 deletions provision/CreateVm.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions provision/arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

2 comments on commit 17c8112

@VincentSaelzler
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#12

@VincentSaelzler
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the bionic stuff doesn't matter - just was testing stuff besides 20.04 because that wasn't working at first

Please sign in to comment.