![]() On Hyper-V host check current status: Get-VMIntegrationService -VMName 'ubuntu'Įnable-VMIntegrationService -VMname 'ubuntu' -Name 'guest service interface'Ĭopying file from Hyper-V host to Ubuntu VM: echo 'This file is about to be copied to ubuntu server'>c:\file.txtĬopy-VMFile -name 'ubuntu' -SourcePath 'C:\file. To have access to a complete Ubuntu desktop environment without dual-booting a PC. There are several use-cases for running Ubuntu on Hyper-V: To introduce Ubuntu in a Windows-centric IT environment. I want to move this to a drive that has nowhere near 6 TB. Ive since managed to shrink the installed Ubuntu Server down to 155 GB, but the dynamically expanding VHDX still has a capacity of 6 TB. If we want to copy files to VM we need to enable Guest Service interface (disabled by default) Hyper-V allows Ubuntu to be run in parallel or in isolation on Windows operating systems. Initially I set up a dynamically expanding VHDX under Hyper-V that was about 6 TB and then installed Ubuntu Server 20.04 using LVM on it. apt-get install -install-recommends linux-tools-virtual-lts-xenial linux-cloud-tools-virtual-lts-xenial linux-virtual-lts-xenial (Think of it as equivalent of VMWare tools).These services enables,for example,guest file copy, while others are important to the virtual machine’s ability to function correctly, such as time synchronization. Hyper-V Integration Services allow a virtual machine to communicate with the Hyper-V host. I don’t know for you,but it’s very uncomfortable to work from Hyper-V console,that’s why i prefer SSH access apt-get install openssh-server -yĪllow ssh traffic to your Ubuntu server (192.168.0.48) ufw allow proto tcp from 192.168.0.0 to 192.168.0.48 port 22ĭownload and install Putty.You should be able now to make connection to Ubuntu Server via port 22 Set-VMDvdDrive -VMName 'ubuntu' -Path 'C:\Users\dragan\Downloads\ubuntu-16.04.1-server-amd64.iso' Set-vm -VMName 'ubuntu' -ProcessorCount 2 In this article we’ll install Ubuntu Server 16.04.01 as Hyper-V VM with 2 CPU’s,1 GB of RAM and 20 GB HDD (Note machine is Generation 1,with Gen 2 it didn’t work for me) new-vm -Name 'ubuntu' -MemoryStartupBytes 512MB -NewVHDPath 'c:\ubuntu\ubuntu.vhd' -SwitchName 'new virtual switch' -NewVHDSizeBytes 20GB -Generation 1 -MaximumBytes 2GB
0 Comments
Leave a Reply. |