Jump to content

Question regarding Virtual Machines from a complete VM noob

Hey, so as I said in the title, I'm trying to learn the absolute basics regarding VMs'. So far I *think I understand what they are, sort of like a computer environment (OS, apps...) within a computer environment, please tell me if I'm incorrect.

 

Anyway, I'm trying to find out if a VM is going to work and be useful to me. I've started doing some work for a small business, creating a site, maintaining it, updating property listings... etc. So on a regular basis, they give me USB drives with .pdf, hundreds of photos, and more importantly zip files. Well, I don't want to be sticking some random USB drives into my system and unzipping what could be anything, so I thought a VM might be good for me.

So my question is; if I set up a VM, just a basic one (I don't know if there are different types) would I be safe while in a VM to open these random zip files and drives, would my actual OS and files be safe and protected from anything nasty, as I opened it while in a VM??

 

Appreciate any info, and sorry if this is a stupid or obvious question.

Build: "The Cake Is A Lie" - (Portal 2 Theme)  Wall Mounted (in a ThermalTake Core P8 all sides removed)  Ryzen 5900X • 64GB Team Group Dark Pro (B-Dies) 3600MHz CL16 • ASUS X570-E Gaming • EK Quantum Plexi Monoblock  MSI RTX 3090 Suprim X  EK Quantum Plexi Block  2TB Samsung 980 Pro Gen4 NVME  8TB Samsung 870 QVO  Corsair RM 850X 2x EK P480M Radiators   PrimoChill Fittings  2x D5 Pumps  Monsoon MMRS Pump Housing  2x HeatKiller Tube 200 Reservoirs  

Link to comment
Share on other sites

Link to post
Share on other sites

yes you are correct. A VM will keep most of your computer safe (unless there is some kind of virus that may target VM's). try buying a chap PC second hand or whatever and unzipping everything on there and scanning it with updated windows defender before plugging into your PC. That may be a hassle, if so a VM should work fine (athough will slow down your PC compared to usual 

Link to comment
Share on other sites

Link to post
Share on other sites

Hi, hi mate (cool handle by the way). Thank you for the info, that's great to hear, I will continue to learn as much as possible about VMs' and go with that.

 

Regarding what you said; although it will slow down your PC - Do you mean having a VM on the PC will slow it down just having it there, or do you just mean while using the VM it's slower? Similar to a game emulator, a super high-end PC can only emulate a PS2 and not a PS3 because of the processing power required to emulate??

Build: "The Cake Is A Lie" - (Portal 2 Theme)  Wall Mounted (in a ThermalTake Core P8 all sides removed)  Ryzen 5900X • 64GB Team Group Dark Pro (B-Dies) 3600MHz CL16 • ASUS X570-E Gaming • EK Quantum Plexi Monoblock  MSI RTX 3090 Suprim X  EK Quantum Plexi Block  2TB Samsung 980 Pro Gen4 NVME  8TB Samsung 870 QVO  Corsair RM 850X 2x EK P480M Radiators   PrimoChill Fittings  2x D5 Pumps  Monsoon MMRS Pump Housing  2x HeatKiller Tube 200 Reservoirs  

Link to comment
Share on other sites

Link to post
Share on other sites

A VM is just a virtual PC within a PC more or less so you are correct there. A VM might not offer you any protection from viruses on a USB drive, the USB will still need to physically plug into your computer so if the virus was designed to release the payload upon connection it won't help you. If the virus is in a zip file that you open on the VM then yes, your PC is probably safe (there have been known exploits that allow people to execute code on a VM and run commands on the host). Also, if the VM is on the same network as the rest of your network it might spread the virus via network shares so be careful of that also.

 

So to recap, if say somebody at the small business had a virus on their desktop and plugged in a USB to their desktop then handed the USB key to you and you plugged it into your desktop then you desktop is most likely infected before you even boot up your VM. If somebody at the small business had a virus, zipped it up, and put it on the USB key then your desktop is safe but your VM is infected and the employee at the small business is a jerk.

-KuJoe

Link to comment
Share on other sites

Link to post
Share on other sites

Yes you will be fine. However you will need to find a way to directly pci passthrough the usb controller (I would recommend getting an expansion card) you are plugging the usb drive into to the VM. This will likely require a linux host and something like KVM for the hypervisor. If you run windows as a normal OS (which I'm guess you are) this will be impractical and I would just suggest getting some crap old PC, keep it unplugged from the network and use that to check the drive first (run malwarebytes, etc.), and perform weekly re-imaging on it.

Current LTT F@H Rank: 90    Score: 2,503,680,659    Stats

Yes, I have 9 monitors.

My main PC (Hybrid Windows 10/Arch Linux):

OS: Arch Linux w/ XFCE DE (VFIO-Patched Kernel) as host OS, windows 10 as guest

CPU: Ryzen 9 3900X w/PBO on (6c 12t for host, 6c 12t for guest)

Cooler: Noctua NH-D15

Mobo: Asus X470-F Gaming

RAM: 32GB G-Skill Ripjaws V @ 3200MHz (12GB for host, 20GB for guest)

GPU: Guest: EVGA RTX 3070 FTW3 ULTRA Host: 2x Radeon HD 8470

PSU: EVGA G2 650W

SSDs: Guest: Samsung 850 evo 120 GB, Samsung 860 evo 1TB Host: Samsung 970 evo 500GB NVME

HDD: Guest: WD Caviar Blue 1 TB

Case: Fractal Design Define R5 Black w/ Tempered Glass Side Panel Upgrade

Other: White LED strip to illuminate the interior. Extra fractal intake fan for positive pressure.

 

unRAID server (Plex, Windows 10 VM, NAS, Duplicati, game servers):

OS: unRAID 6.11.2

CPU: Ryzen R7 2700x @ Stock

Cooler: Noctua NH-U9S

Mobo: Asus Prime X470-Pro

RAM: 16GB G-Skill Ripjaws V + 16GB Hyperx Fury Black @ stock

GPU: EVGA GTX 1080 FTW2

PSU: EVGA G3 850W

SSD: Samsung 970 evo NVME 250GB, Samsung 860 evo SATA 1TB 

HDDs: 4x HGST Dekstar NAS 4TB @ 7200RPM (3 data, 1 parity)

Case: Sillverstone GD08B

Other: Added 3x Noctua NF-F12 intake, 2x Noctua NF-A8 exhaust, Inatek 5 port USB 3.0 expansion card with usb 3.0 front panel header

Details: 12GB ram, GTX 1080, USB card passed through to windows 10 VM. VM's OS drive is the SATA SSD. Rest of resources are for Plex, Duplicati, Spaghettidetective, Nextcloud, and game servers.

Link to comment
Share on other sites

Link to post
Share on other sites

Also one thing to keep in mind, while this may protect you from software attacks (especially if you pass through the whole controller), it's not going to help with hardware attacks. Things like a USB Killer will still damage your device regardless of whether you have the software side isolated to a VM or not.

Link to comment
Share on other sites

Link to post
Share on other sites

Great stuff, thank you everyone, I really appreciate the help and info. I'll keep learning about VMs' but just to be safe, I'll look out for a cheap old system or raspberry pi to check them first before plugging into my main systems.

Thanks again.

Build: "The Cake Is A Lie" - (Portal 2 Theme)  Wall Mounted (in a ThermalTake Core P8 all sides removed)  Ryzen 5900X • 64GB Team Group Dark Pro (B-Dies) 3600MHz CL16 • ASUS X570-E Gaming • EK Quantum Plexi Monoblock  MSI RTX 3090 Suprim X  EK Quantum Plexi Block  2TB Samsung 980 Pro Gen4 NVME  8TB Samsung 870 QVO  Corsair RM 850X 2x EK P480M Radiators   PrimoChill Fittings  2x D5 Pumps  Monsoon MMRS Pump Housing  2x HeatKiller Tube 200 Reservoirs  

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×