How to Pass Data from a Hyper-V VM to a host
Вставка
- Опубліковано 7 вер 2024
- Get Atlas VPN Premium! for just $1.99/mo with a 30 day money back guarantee:
get.atlasvpn.c...
You can pull data from a Hyper-V VM in one of two ways. First, you can use a shared drive. Second, you can create a .VHDX disk and attach that disk to the VM. Transfer the files then attach the virtual disk to the host machine.
For uncensored video, check out my substack at:
ryanmcbeth.sub...
Like my shirts? Get your own at:
www.bunkerbran...
Watch all of my long form videos:
• Military Equipment, Ta...
Twitter:
@ryanmcbeth
Telegram:
@rmcbeth
Web:
RyanMcBeth.com
Join the conversation:
/ discord
Want to send me something?
Ryan McBeth Productions LLC
8705 Colesville Rd.
Suite 249
Silver Spring, MD 20910
USA
Get Atlas VPN Premium! for just $1.99/mo with a 30 day money back guarantee:
get.atlasvpn.com/McBeth
You can pull data from a Hyper-V VM in one of two ways. First, you can use a shared drive. Second, you can create a .VHDX disk and attach that disk to the VM. Transfer the files then attach the virtual disk to the host machine.
For uncensored video, check out my substack at:
ryanmcbeth.substack.com
Like my shirts? Get your own at:
www.bunkerbranding.com/pages/ryan-mcbeth
Watch all of my long form videos:
ua-cam.com/play/PLt670_P7pOGmLWZG78JlM-rG2ZrpPziOy.html
Twitter:
@ryanmcbeth
Telegram:
@rmcbeth
Web:
RyanMcBeth.com
Join the conversation:
discord.gg/pKuGDHZHrz
Want to send me something?
Ryan McBeth Productions LLC
8705 Colesville Rd.
Suite 249
Silver Spring, MD 20910
USA
Ideas for a CIS t-shirt: 1) *Hits "Enter." One microsecond later: Oops! 2) I'm a Deterministic Optimist with a sprinkle of Probabilistic Pessimism! 3) I Secure Cyber!
Thanks for the video. What type of Windows Theme do you have, or is it an upgraded windows 10 version ? I liked its graphical design.
And about the IT-Shirt I suggest the Themes "It works on my Machine" or "Read the Freaking Manual".
Rats, I came here to learn more about tanks ...and things that look like tanks...
how to build a distributed open source analysis network? kinda like bellingcat but to more accurately estimate Chinese deaths? One person can't possibly stare at all the funeral homes crematory and graveyards in China etc. I figure if anyone had an idea about how to use e.g. php and e.g. altervista (it definitely has SQL) to start trawling for distributed OSINT on China it would be you. (I think altervista also allows php).
You should think about doing a video on VPNs, maybe you have and I haven't seen it. I think there's a lot of details about why different vpns are capable of different things, how tunnels work, and how hacking and data collection works that would fit into that and it would be informative to both parts of your audience, as well as possibly being worth more to people like atlas.
Im a former infantryman who incidentally is now a software engineer. This totally threw me for a loop. I’ve only seen Ryan’s military videos.
New too
Sometimes I forget this was a programming channel, that's how I found you. The analysis and story videos are so good I almost forgot how good you are at teaching
I didn't know that, i started watching after the invasion.
Yeah, I found him looking for something for a class and was pleasantly surprised at the quality and variety of videos.
Right? Im here post invasion, don’t understand scripting or whatever was discussed here today, but I sure love the way Ryan gesticulates and shares his wealth of knowledge
“Dance like no one is watching. Encrypt like everyone is” this sticker has adorned my notebook for years. I would gladly buy a tshirt from you to adorn myself
Really enjoyed the video. Found your channel when you started covering the events in Ukraine.
As someone that works in low-level IT at my company, my initial (definitely snarky) thought upon seeing the title of the video was, "Well open Bomgar, get into the device you are working with (VM or otherwise), and either copy/paste or transfer the file over to your computer."
Seeing how it can actually be done in the times I have to use vSphere instead is something I'll keep in my back pocket, but I don't think they'd like me messing with the VMs for the stores in that manner.
As to the shirt idea, I submit the phrase that explains a lot of what I see happen way above my head. Again, low-level IT here. The shirt should, somewhere, say "Invisible Magic" on it because that's the best way to explain stuff to people when they don't actually want to know why/how something happend.
The test for the "invisible magic" answer is pretty easy. No matter your position, if you work in IT and someone asks how something works, and you actually know, the test is to say something like, "I COULD explain it to you. But do you REALLY want to know? Because it'll take a minute." Hence, invisible magic.
Cheesus, this came literally in time for my Linux Operating System class 😍 This is the perfect channel for me
Thank you
@@RyanMcBethProgramming No Ryan. I thank YOU! 😍
@@lt_dreams96 What are you, Keanu Reeves?
You're breathtaking!
@@askiiart Keanu means "wind" roughly if I remember right, so nice choice of attractive celebrity for the breathtaking comment!
If I'm wrong about that, correct me. American languages are my specialty not Polynesian ones.
I usually just mount a folder on my host into my VM. I use VirtualBox so I can use vbox shared folders, but samba, nfs etc works too
I develop software with codebase on my host, but running on the VM so this is fundamental
@@ts757arse Do you mean the GUI drag and drop? Tbh I've never used it as all my VMs are headless/GUI-less linux machines, but I'd suggest you just use shared folders. Mount a folder from your host, then just copy the files to the mounted folder within ur VM. Just like you would a network share or USB drive.
Its so awesome to see you speak my language. Never give up the will to live!
I already have one but "It works on my machine" is a classic I love to wear at work
I'm glad you're keeping up the software engineering posts.
I am the very specific demographic this channel is for.
This blew my mind given I have only ever seen Ryan’s military based videos.
Considering I am no fan of war, but do have a tech infrastructure background I am so confused how I feel right now lol.
I have a bunch. This started out as a programming channel
Technically if you were it 8n the military it would be usful, especially if you couldnt put it on a network
I was skipping around, but are you not allowed to use an Enhanced Session to get copy-paste functionality?
Enhanced session mode could be a better solution. Connecting that VM over SMB to the Hypervisor would not be a good idea if that VM has network level access. If you have a user account created on the Hypervisor that has administrative priv. you are now caching those credentials on the VM. If that VM becomes compromised the bad actor now has access to your Hypervisor perhaps even with administrative priv.
This is how the banking malware emotet spreads laterally through networks. When you think you have cleaned up one PC, it using RPC to reinfect the host.
man you can talk about paint drying and id still listen to you
One day my network shares did not show up in my virt manager virtualization for some reason. Then I used usb stick. Virt manager automagicaly added it to client, there is probably an option in hyper-v, when file copy is done, eject it from client and open it on host. For one time use it works. Best way are network shares.
I will probably not use this information anytime soon, but dang it I've got to watch every Ryan Macbeth video!
0:15 Good vid, but if you're going to show menus/dialog boxes/ PowerShell lines, the viewer would benefit if the objects of focus took up most of the screen.
I remember stumbling my way through this for a school project lol, brings back memories of an MVC app.
Hey Ryan! I love your videos. They are some of my favorite videos I have ever watched. Your videos inspired me even more to serve the U.S military and whatnot. Thank you !
Thanks for watching send ⤴️a direct message right away 𝟮𝟬𝟭𝟱𝟰𝟵𝟵𝟱𝟳𝟭 i will love to hear your thoughts on it and for more enlightment❤✍
Years ago the scrap sale flyer had a cartoon of a guy with lots of soot marks and blast comb sitting in front of a work bench with a small crater and a large puff of smoke between his o-scope probes, and his thought balloon said "huh - it's never done that before" and scrap sale in bold over the top.
I always wanted that on a tee, but lost the flyer years ago.
Great video! I would love to see more virtualization videos! Maybe a discussion about virtualization on Linux, or passing hardware to a virtual machine!
I have no clue as to what you are saying but it sounded good so I gave it a thumbs up.
Something I've done in class, but forget once it was over.
I wish I had stayed with it, my life would be so much better. My ICND expires this February, and I doubt I'd pass the CCNA.
I don’t really expect to see such video on this channel))
Short but sweet. I have never needed to do this, but wondered how for years.
Virtual machines ?
Wow what a coincidence that is exactly what i'm studying right now !
Nice.
network solution worked for me. Thank you!
I have no idea what u are doing here. I just binge ALL RMB videos, so just don`t mind me.
You should check out Qubes OS
Great easy to follow video! Love your content!!
Usually here for the military content, however I will stay for the tech as well.. more information makes me smarter!
So you can’t setup a virtual switch lan and use unc paths? Maybe a domain controller to apply sharing policy? How about just using an enhanced session and use the clipboard? That’s not really being “networked”. Maybe there’s a reason that I don’t understand but I’m so glad I don’t have arbitrary limitations as an SRE. It seems like early 2000s IT stuff that just doesn’t scale. If I’m touching a gui I’m writing automation to never do it again. Id rather let my code manage my environment so I can go ski lol. You seem like a smart enough guy that you wouldn’t be doing this without reason though.
Just from the title I knew that I wouldn't have a clue what's he's on about.
SWEET thanks man!
For my Hyper-V Linux VM’s I use WinSCP
I might be able to use this in a couple of weeks. Thanks
Shirt idea - A QR code and plaintext of the following string:
X='() { :;}; rm -rf /'
You're a gem!
Can also use ms remote desktop and share a host drive.
That comic at the end is real? I seems awesome.
Thank you so much
Ouch!
This is where I'd be using VirtualBox as you can share a folder from the Host to the VM and both can use it at the same time.
But it does require the VM using the VirtualBox extensions, and if your security requirements don't allow that...well, looks like your "disk shuffle" is the way you have to go.
Fun fact, you can have both Hyper-V and VirtualBox running simultaneously on the same host.
I run most of my Linux VMs in VirtualBox and any Windows VMs in HyperV.
Hyper-V is faster as you are one layer closer to the HW. VirtualBox does more virtualization, so you can virtualize Sound, Networking, Display, etc.
Getting sound and higher resolution display for a HyperV Linux Guest is more of a struggle.
And now that VirtualBox 7 is out, it has a virtual TPM and UEFI "BIOS" so you can legitimately run Windows 11 Guests with no work-arounds provided the underlying Host HW is on the approved HW list.
Can you please make a tutorial for dependency injection for c# i theoretical know what it is but a detailed explanation with some tips will be amazing
Yes
Hello Ryan you indicated the fact that not everyone is subscribing to your channel? It often comes down to the simple fact of treated Everyone not just those you feel comfortable with. With a sense of common reason. It's your vibe you give off towards Others on your channel. Aside from the bots and trolls When real individuals feel they are being Disenfranchised they don't subscribe.
Yes, it is quite possible you probably actually have alot more subscribers but if you're only willing to indicate appreciation to afew close Buddies people are going to pick up on that -Really Quick, Even on-line. They'res great content makers and Sucky ones the one's that trail off are the ones that are not inclusive.
Fyi:
(( Omaha, Nebraska ))
🇺🇸🦅⚓🛡️⚔️✨🌽
Could you attach an USB Drive to the host and map it to the vm, copy the files, disconnect the usb drive from the vm and reattach it to the host? seems similar to your solution.
Thank you war daddy!
I am commenting here because I can find no other way: on one of your (great) shorts on UA-cam you said there was other war footage/content accessible on the "link below" (substack perhaps was mentioned?). Trouble is there are no "links below" that I can see on UA-cam other than the reference to your channel home - and I see nothing of the sort I was anticipating there. It may be that I'm just an OLD technologically illiterate sort. How about a little clarification? Great vids, by the way! ...and I don't want to "miss out" because I "are too dumb".
If you make a cyber security t-shirt you need to make it reference "security by obscurity" and how useless it is.
kind of like using a vhdx as a portable flash drive, but without the 'satisfaction' of being able to unplug and plug it into the USB ports. I'd love to be able to suggest a better way of transferring files, but with the 'no network connection' limitation, I'm coming up blank.
I really want to love Hyper-V, but I find the lack of USB passthrough such a big disappointment.
My eyes are bleeding every time I see Hyper-V. But no problem, I can't feel pain since I had to use Oracle VM Manager(OVMM). (a vSphere guy)
Hey I don’t really have social media to reach out, but any idea why Russian citrus (linen too but that makes sense) imports are so up since the invasion?
Talking 15%+ month over month the last few
I tick the check box that allows me to just drag and drop stuff.
Wouldn't it be safer to have the shared folder reside on the VM? That way you don't have to give a VM running malware to write access to a folder on your machine?
EDIT: could you do more videos on WSL? (Windows subsystem for Linux)
I can do that
That's how I'd do it.
What I'm doing now though which is quite fun. Where networking is allowed is running a next cloud instance on my server. It gives me all the "cloud" file sync stuff but without giving my data to the cloud.
Then for the project VM I give it its own username and password, and have it sync the project data folder specific to its function directly into my global file structure.
So the VM only has /documents/project 1/code/*
But from the host desktop I have the full tree and when I fire up my laptop it's all there too, feeling really keen sync it to your phone lol.
(You can also get version histories and the like as well from next cloud)
I have no idea what's going on, but i liked the video because i like your content, and i hope it helps boost you in the youtube algorithm....whatever that means lol.
Didn't knew Window can mount files as fully-functional filesystems.
Could you make a video on how to stop a VM which is stuck in either Stoping or starting state?
Maybe. I would have to cause the condition first.
Talk about the US sending in MBT's
nice, very usefull
I would love to see a PFM shirt my fav IT shirt which stands for Pure Fucking Magic. It's the perfect excuse for when something is working when it wasn't and you don't know why.
Watching this while using vSphere 7
Man the rich just get richer
How much does the subscription to your page cost ?
Would like to see a black T with white letters: Pegasus is a Trojan Horse
yay computer content!
Here is a good shirt
ID:10T error keeps us busy
I was taught not to use hyper-V and to use VMware insted. Can somebody explain to me why I was taught that?
Destroys tanks, trains soldiers, destroys VMs, trains sysadmins :)
VMWARE is great used it all the time at the recycling company that I was the Admin. They broke computers all the time.
T-shirt to sell. One from the old Unix games fortune command, "Beware of programmers who carry screwdrivers."
you should subtitle your shorts.
But why would you use Hyper-V when KVM exists?
Military regulations perhaps?
@@susanyoung6579 I thought he was out of the army
@@skinwalker69420 old habits?
@@susanyoung6579 perhaps.
I wound up rescuing a very important and hence not backed up config file from a VM that had gotten hosed hard by corruption due to disk failures.
It was a bsd based system, the host was Linux and it didn't want to loop mount the partitions of the VM into the host, I think due to the corruption and it being an old disk format type. I managed to boot off install media for the VM, it was able to mount the disks, but it was only an installer environment so no tools or network. Then to get the files out I actually used a virtual serial port lol. Like the good old days. Echo somefile.cfg > /dev/ttyS1 kinda deal in the guest and the reverse on the host. Felt like it was 1990 again lol. 😆
You can simply "copy pasta" the files from the client to the hosts desktop. Testet on a Windows 10 Hyper-V host and a Windows 11 client. Both directions.
Is pac 3 capable of intercepting kh 47 ?
Unfortunately, I don't have that information.
But, can this take out a tank?
👀what did he say ?
Dang that's a lot of steps. Hope microsoft add command line interface for this or auto setup. Using gui for this kind of thing bit annoying to me
What kind of Ukrainian tank is this, I don't get it. Can't find it online
Ok but where the military stuff at?
If the VM is on the Host Machine you are working on (as opposed to a VM on a remote Host) then on either machine you can *Right Click* on the file or folder, *Left Click* on *Copy* then *Paste* it to a location of your choice. _SEMPLES!!_ 😁
Wha? GPT disks can be bootable.
Windows 11 lets you mount/explore virtual disks with a double click? Fancy!
Yeah, on UEFI.
@@RyanMcBethProgramming Touché. 😊
And then god help you if one of those OSes is Linux distro of your choice. Thanks for the guide!
Linux has limited NTFS support if you need to move large files, otherwise you can use FAT32 for maximum interoperability
I have never set up a VM for windows 😅 I only have used Linux VMs💀
FOR FFS.. how to copy text from VM to host ? WHY IS THIS SO FUCKING HARD TO FIND OUT ???
Your commercial at the end of your videos might get banned from UA-cam ! 🚫
Ok start from "a file"
I know the answer to the title. I am just laughing b/c I did not realize you were a coder. Who the fark uses virtual machines? Spawn up a VM in Azure and toss it when you're done. Yeah I was using Virtual PC, VMWare Fusion, and Virtual Box prior to Hyper-V.....
'Customers always lie'
10 years in App Support and this is still true xD
What exactly is wrong with RDP? Why, why, why would you use the Hyper-V Manager at all? VMconnect is a crutch. RDP has USB-Support and can share drives, with no hassle at all.
RDP only works when you are connected via RDP. If, say, you were generating files on a VM for a long running process that is essentially headless then using the VHDX method would mean you don't have to deal with MSTSC and frequent inactivity log outs.
@@cheekychappy1234 RDP doesn't have inactivity log outs - if you're know how to configure it of course.....
@@MartinKuras Fair enough but the comment still stands in a general sense. You are reliant on MSTSC staying up and staying connected. It's reliability might be fine for adhoc solutions but can't stand up if you need any degree of reliability.
If you used a proper desktop virtualization package like VirtualBox or VMware Workstation (Player), you'd just have the option to add a shared directory and that would be that. But because Hyper-V is a piece of dogshit, that feature just does not exist.
Wait wait wait so let me get this straight. Ukraine is using virtual machines to destroy Russian hyper 5 missiles?
#scammerrevolts
I watched the video and liked it but I have no idea WTF he’s talking about 🤷🏼♂️
Thanks for watching send ⤴️a direct message right away 𝟮𝟬𝟭𝟱𝟰𝟵𝟵𝟱𝟳𝟭 i will love to hear your thoughts on it and for more enlightment❤✍
First comment!
Hyper-V needs USB device passthrough (not just printer or storage). Had to use VMware Workstation to use USB devices :(
First
Ryan.txt.txt. I love windows.